/*Diego Lima de Freitas RA: 317632
 *Yuri Souza Padua RA: 317420
 * 
 * Classe que trata number
 */

package AST;

public class NumberExpr extends Expr {

    private int value;

    public NumberExpr(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public void genC(PW pw, boolean putParenthesis) {
        pw.out.print(value);
    }

    @Override
    public Type getType() {
        return Type.integerType;
    }
}
